import { $get,$post } from "../utils/request.ts";

//返回评价列表
export const $roomList = async ()=>{
    let ret =await $get('roomType/findRooms')
    return ret.t
}


// 获取房间列表
export const $findAll = async (params:object) => {
  let ret = await $get('roomType/FindAll',params)
  return ret
}

// 添加房间
export const $save = async (params:object)=>{
  let ret = await $post('roomType/Save',params)
  return ret
}

// 查找单个房间
export const $findById = async (params:object)=>{
  let ret = await $get('roomType/FindById',params)
  return ret
}

// 修改房间
export const $update = async (params:object)=>{
  let ret = await $post('roomType/Update',params)
  return ret
}
